package com.elephant.core.interceptor.method;

import org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: hai
 * @Date: 2019/2/12 15:18
 */
@Configuration
public class MethodInterceptorConfig {

    @Bean
    public BeanNameAutoProxyCreator config(){
        BeanNameAutoProxyCreator creator = new BeanNameAutoProxyCreator();
        creator.setBeanNames("tkMapperController");
        creator.setInterceptorNames("methodInterceptorTest");
        return creator;
    }
}
